package com.kk.xhr.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 启动类
 *
 * @author luokexiong
 * @version 1.0 2021/2/14
 * @since 1.0.0
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.kk.xhr")
@MapperScan(basePackages = {
    "com.kk.xhr.model.dao",
    "org.mybatis.dynamic.sql.util.mybatis3"
})
@EnableSwagger2
@EnableScheduling
@EnableTransactionManagement(proxyTargetClass = true)
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class XhrMgrApplication {
    public static void main(String[] args) {
        SpringApplication.run(XhrMgrApplication.class, args);
    }
}
